package com.qf.user.controller;

import com.qf.user.param.LoginParam;
import com.qf.user.service.UserService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author zdl
 * @date 2025/4/7
 */
@RestController
@RequestMapping("/user")
public class LoginController {
    @Resource
    private UserService userService;

    @PostMapping("/login")
    public String login(@RequestBody LoginParam param) {
        return userService.login(param);
    }
}
